<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$intLID = (int)$_data["LottoID"];
$arrWG = explode(",", $_data["WebGID"]);
$strGameDate = DateForm(date("Y-m-d"), date("H:i:s"), "Y-m-d");

$strCon = "";
foreach($arrWG as $k => $strWGID){
	$arrTmp = explode(":", $strWGID);
	$intWID = $arrTmp[0]*1;

	$arrW = $arrWeb[$intWID];
	$strName = $arrW[0];
	$strDir = $arrW[1];
	$strUrl = $arrW[2];

	$strCon .= $strName." ( ".$strDir." ) \n====================================================\n";

	$arrC = file("http://".$strUrl."/k_admin/GameCenter/setWebGameAutoAdd.php?UserAcc=".urlencode($_SESSION["Admin_Info"] -> Account)."&LottoID=".$intLID."&Web=".$intWID."&GameDate=".urlencode($strGameDate));

	$strCon .= implode("", $arrC);
}

$strLog = "UserAcc => ".$_SESSION["Admin_Info"] -> Account."\n";
$strLog .= "Param => ".print_r($_data, true)."\n";
$strLog .= "Cont => ".$strCon."\n";
if(!AddData_Log($_SESSION["Admin_Info"] -> ID, "中心統一新增期數", $strLog))ErrMsgOutputHTML("Error Over 50", "", 1);

WebOutputHTML($strCon, 0);
 ?>
 <script type="text/javascript">
 <!--
parent.ChangeRefreshSec();
 //-->
 </script>